#include "asm.h"
#include "regdef.h"
#include "inst_test.h"

LEAF(n28_sra_w_test)
    
    addi.w s0, s0 ,1
    li  s2, 0x00
###test inst
    TEST_SRA_W(0x3e594300, 0x00000003, 0x07cb2860)
    TEST_SRA_W(0x171e0116, 0x00000004, 0x0171e011)
    TEST_SRA_W(0xfb98a1c4, 0x00000017, 0xfffffff7)
    TEST_SRA_W(0x6ff8fac0, 0x00000019, 0x00000037)
    TEST_SRA_W(0x09d99740, 0x00000015, 0x0000004e)
    TEST_SRA_W(0x9dce37bf, 0x0000000d, 0xfffcee71)
    TEST_SRA_W(0x5eb1157a, 0x00000015, 0x000002f5)
    TEST_SRA_W(0x88f10b2d, 0x0000000b, 0xfff11e21)
    TEST_SRA_W(0xb10709b0, 0x0000001a, 0xffffffec)
    TEST_SRA_W(0x12de8e6c, 0x00000016, 0x0000004b)
    TEST_SRA_W(0x5a19d7d4, 0x0000000a, 0x00168675)
    TEST_SRA_W(0xf868eb20, 0x00000017, 0xfffffff0)
    TEST_SRA_W(0xe1af3806, 0x0000001a, 0xfffffff8)
    TEST_SRA_W(0xac603472, 0x00000018, 0xffffffac)
    TEST_SRA_W(0xb4c20d00, 0x0000001d, 0xfffffffd)
    TEST_SRA_W(0x5f709bf3, 0x00000010, 0x00005f70)
    TEST_SRA_W(0x04bbf65d, 0x00000012, 0x0000012e)
    TEST_SRA_W(0x864b21c8, 0x00000001, 0xc32590e4)
    TEST_SRA_W(0xe368847c, 0x00000004, 0xfe368847)
    TEST_SRA_W(0x773bc92a, 0x0000000b, 0x000ee779)
    TEST_SRA_W(0xc54313f6, 0x00000002, 0xf150c4fd)
    TEST_SRA_W(0x6dcf66ac, 0x00000005, 0x036e7b35)
    TEST_SRA_W(0x3cdb5ca8, 0x00000001, 0x1e6dae54)
    TEST_SRA_W(0x7dc9eb37, 0x00000011, 0x00003ee4)
    TEST_SRA_W(0x490938fc, 0x0000000b, 0x00092127)
    TEST_SRA_W(0xedaa50e2, 0x00000000, 0xedaa50e2)
    TEST_SRA_W(0xd1e3223a, 0x00000012, 0xfffff478)
    TEST_SRA_W(0x0333e830, 0x0000000e, 0x00000ccf)
    TEST_SRA_W(0x26a9b764, 0x00000008, 0x0026a9b7)
    TEST_SRA_W(0xda958664, 0x00000007, 0xffb52b0c)
    TEST_SRA_W(0xa59119ec, 0x00000003, 0xf4b2233d)
    TEST_SRA_W(0x80326b50, 0x00000019, 0xffffffc0)
    TEST_SRA_W(0xe5ff43e6, 0x0000000c, 0xfffe5ff4)
    TEST_SRA_W(0xa9152f58, 0x0000000d, 0xfffd48a9)
    TEST_SRA_W(0xee204600, 0x00000005, 0xff710230)
    TEST_SRA_W(0xf5e57858, 0x00000017, 0xffffffeb)
    TEST_SRA_W(0xef213eb4, 0x00000013, 0xfffffde4)
    TEST_SRA_W(0x5ecf4490, 0x0000001a, 0x00000017)
    TEST_SRA_W(0x7c1ca88a, 0x0000000a, 0x001f072a)
    TEST_SRA_W(0xc76ddd2a, 0x00000004, 0xfc76ddd2)
    TEST_SRA_W(0x77090678, 0x00000008, 0x00770906)
    TEST_SRA_W(0x31aebb40, 0x00000006, 0x00c6baed)
    TEST_SRA_W(0x1c1d401c, 0x0000000f, 0x0000383a)
    TEST_SRA_W(0x983531da, 0x00000015, 0xfffffcc1)
    TEST_SRA_W(0xfb26fb10, 0x0000001a, 0xfffffffe)
    TEST_SRA_W(0x7b80fa5c, 0x0000001b, 0x0000000f)
    TEST_SRA_W(0x47b747ac, 0x00000005, 0x023dba3d)
    TEST_SRA_W(0xe93f0edc, 0x00000000, 0xe93f0edc)
    TEST_SRA_W(0xc9a10238, 0x0000001a, 0xfffffff2)
    TEST_SRA_W(0x18a8e82c, 0x0000001e, 0x00000000)
    TEST_SRA_W(0x1a74f36e, 0x00000016, 0x00000069)
    TEST_SRA_W(0xc025ee5c, 0x0000001c, 0xfffffffc)
    TEST_SRA_W(0x77c711a0, 0x0000001a, 0x0000001d)
    TEST_SRA_W(0x4d5ad8a4, 0x00000010, 0x00004d5a)
    TEST_SRA_W(0x6ff33800, 0x00000011, 0x000037f9)
    TEST_SRA_W(0x66e362d8, 0x00000007, 0x00cdc6c5)
    TEST_SRA_W(0xff07fbbc, 0x00000002, 0xffc1feef)
    TEST_SRA_W(0x15113868, 0x00000000, 0x15113868)
    TEST_SRA_W(0x7ec86dc8, 0x0000000e, 0x0001fb21)
    TEST_SRA_W(0x5c36fdc2, 0x00000006, 0x0170dbf7)
    TEST_SRA_W(0x614b9c32, 0x0000000f, 0x0000c297)
    TEST_SRA_W(0x8b8a5040, 0x0000000a, 0xffe2e294)
    TEST_SRA_W(0x946ee990, 0x00000018, 0xffffff94)
    TEST_SRA_W(0x53d2cf20, 0x00000005, 0x029e9679)
    TEST_SRA_W(0xf86b1c54, 0x00000000, 0xf86b1c54)
    TEST_SRA_W(0x2425f532, 0x00000007, 0x00484bea)
    TEST_SRA_W(0xfb78fcea, 0x0000000c, 0xffffb78f)
    TEST_SRA_W(0x05e6850f, 0x0000001c, 0x00000000)
    TEST_SRA_W(0xd5a67a1a, 0x00000002, 0xf5699e86)
    TEST_SRA_W(0x9991c778, 0x0000001b, 0xfffffff3)
    TEST_SRA_W(0xe6c77bd8, 0x00000002, 0xf9b1def6)
    TEST_SRA_W(0xac140820, 0x00000009, 0xffd60a04)
    TEST_SRA_W(0xffa10eb0, 0x00000002, 0xffe843ac)
    TEST_SRA_W(0x0b0dceb8, 0x0000000b, 0x000161b9)
    TEST_SRA_W(0x19581c80, 0x0000001f, 0x00000000)
    TEST_SRA_W(0x712ade78, 0x0000001c, 0x00000007)
    TEST_SRA_W(0x2d6b668c, 0x00000014, 0x000002d6)
    TEST_SRA_W(0x9ea8226c, 0x00000010, 0xffff9ea8)
    TEST_SRA_W(0x7409305a, 0x00000000, 0x7409305a)
    TEST_SRA_W(0x9f8461d0, 0x00000001, 0xcfc230e8)
    TEST_SRA_W(0x24134820, 0x0000001d, 0x00000001)
    TEST_SRA_W(0x29647820, 0x0000001c, 0x00000002)
    TEST_SRA_W(0x8f257894, 0x00000019, 0xffffffc7)
    TEST_SRA_W(0x6618bc6f, 0x0000000b, 0x000cc317)
    TEST_SRA_W(0x3a525817, 0x00000014, 0x000003a5)
    TEST_SRA_W(0x9e715b80, 0x0000001d, 0xfffffffc)
    TEST_SRA_W(0x2d8ea788, 0x00000005, 0x016c753c)
    TEST_SRA_W(0x694cb17c, 0x0000001f, 0x00000000)
    TEST_SRA_W(0x417448bc, 0x00000003, 0x082e8917)
    TEST_SRA_W(0x9cd95d7c, 0x00000009, 0xffce6cae)
    TEST_SRA_W(0xcbb50b08, 0x00000015, 0xfffffe5d)
    TEST_SRA_W(0xb367daa3, 0x0000001e, 0xfffffffe)
    TEST_SRA_W(0x7e82ff40, 0x00000003, 0x0fd05fe8)
    TEST_SRA_W(0xd5a029af, 0x00000012, 0xfffff568)
    TEST_SRA_W(0x98ae04c2, 0x00000014, 0xfffff98a)
    TEST_SRA_W(0x75b1649a, 0x00000002, 0x1d6c5926)
    TEST_SRA_W(0x78b82ec0, 0x00000001, 0x3c5c1760)
    TEST_SRA_W(0x7aea8920, 0x0000000e, 0x0001ebaa)
    TEST_SRA_W(0x4cd3b4e0, 0x0000000a, 0x001334ed)
    TEST_SRA_W(0x1082d204, 0x00000019, 0x00000008)
    TEST_SRA_W(0xc9084f48, 0x00000000, 0xc9084f48)
    TEST_SRA_W(0x72e5457a, 0x0000000d, 0x0003972a)
    TEST_SRA_W(0xb9f19eee, 0x00000003, 0xf73e33dd)
    TEST_SRA_W(0x46a5694f, 0x0000001c, 0x00000004)
    TEST_SRA_W(0x08ad259e, 0x00000010, 0x000008ad)
    TEST_SRA_W(0xfdfde280, 0x00000010, 0xfffffdfd)
    TEST_SRA_W(0x70e34c62, 0x00000008, 0x0070e34c)
    TEST_SRA_W(0xaa2d9442, 0x00000003, 0xf545b288)
    TEST_SRA_W(0x3a1d3af8, 0x00000007, 0x00743a75)
    TEST_SRA_W(0x182c5238, 0x0000001d, 0x00000000)
    TEST_SRA_W(0x063ee80a, 0x00000000, 0x063ee80a)
    TEST_SRA_W(0xdd0031c0, 0x00000016, 0xffffff74)
    TEST_SRA_W(0xd555d880, 0x0000000b, 0xfffaaabb)
    TEST_SRA_W(0xa22fb96a, 0x00000004, 0xfa22fb96)
    TEST_SRA_W(0x7c736c64, 0x00000004, 0x07c736c6)
    TEST_SRA_W(0xff3f202c, 0x00000001, 0xff9f9016)
    TEST_SRA_W(0x035c46dc, 0x0000001c, 0x00000000)
    TEST_SRA_W(0x0a5d4aec, 0x00000001, 0x052ea576)
    TEST_SRA_W(0xd5b54600, 0x00000001, 0xeadaa300)
    TEST_SRA_W(0x4ef262cc, 0x00000014, 0x000004ef)
    TEST_SRA_W(0xcbaaa7a0, 0x00000016, 0xffffff2e)
    TEST_SRA_W(0x7f8649a0, 0x0000000c, 0x0007f864)
    TEST_SRA_W(0x87cd9140, 0x00000002, 0xe1f36450)
    TEST_SRA_W(0x73dfacf0, 0x00000010, 0x000073df)
    TEST_SRA_W(0xe1659cfc, 0x0000001c, 0xfffffffe)
    TEST_SRA_W(0x6494ad40, 0x00000015, 0x00000324)
    TEST_SRA_W(0xc0e57d70, 0x00000010, 0xffffc0e5)
    TEST_SRA_W(0x5c4fca8c, 0x00000014, 0x000005c4)
    TEST_SRA_W(0xc720d219, 0x00000004, 0xfc720d21)
    TEST_SRA_W(0x5111c9bb, 0x00000014, 0x00000511)
    TEST_SRA_W(0xbf461946, 0x0000000f, 0xffff7e8c)
    TEST_SRA_W(0x538ae800, 0x00000014, 0x00000538)
    TEST_SRA_W(0x3beabc40, 0x00000002, 0x0efaaf10)
    TEST_SRA_W(0x79daaef2, 0x0000001e, 0x00000001)
    TEST_SRA_W(0x6408cf7c, 0x00000018, 0x00000064)
    TEST_SRA_W(0x30e02858, 0x00000004, 0x030e0285)
    TEST_SRA_W(0x9568d5e8, 0x00000015, 0xfffffcab)
    TEST_SRA_W(0x22361ecc, 0x0000000f, 0x0000446c)
    TEST_SRA_W(0x25b32830, 0x0000000e, 0x000096cc)
    TEST_SRA_W(0xd0f01a33, 0x00000000, 0xd0f01a33)
    TEST_SRA_W(0x706994dc, 0x0000001b, 0x0000000e)
    TEST_SRA_W(0x974ba6c6, 0x0000000c, 0xfff974ba)
    TEST_SRA_W(0x2f99bcfc, 0x00000005, 0x017ccde7)
    TEST_SRA_W(0x6fc9a830, 0x00000014, 0x000006fc)
    TEST_SRA_W(0x8f11af9a, 0x0000001c, 0xfffffff8)
    TEST_SRA_W(0x25447260, 0x0000001a, 0x00000009)
    TEST_SRA_W(0x621a8d6e, 0x0000001a, 0x00000018)
    TEST_SRA_W(0x7157f254, 0x0000000d, 0x00038abf)
    TEST_SRA_W(0x7250e14e, 0x00000001, 0x392870a7)
    TEST_SRA_W(0x2298b0ff, 0x00000005, 0x0114c587)
    TEST_SRA_W(0x9f213000, 0x00000014, 0xfffff9f2)
    TEST_SRA_W(0x6fb1fd24, 0x0000000d, 0x00037d8f)
    TEST_SRA_W(0xc2e3142a, 0x00000016, 0xffffff0b)
    TEST_SRA_W(0x640e9214, 0x00000012, 0x00001903)
    TEST_SRA_W(0x05ad50a8, 0x0000001f, 0x00000000)
    TEST_SRA_W(0xba4ec160, 0x00000008, 0xffba4ec1)
    TEST_SRA_W(0xe619de82, 0x0000000b, 0xfffcc33b)
    TEST_SRA_W(0x09c03afc, 0x00000015, 0x0000004e)
    TEST_SRA_W(0xb7009540, 0x0000000f, 0xffff6e01)
    TEST_SRA_W(0xd158d6b4, 0x0000001e, 0xffffffff)
    TEST_SRA_W(0xc7da8990, 0x00000000, 0xc7da8990)
    TEST_SRA_W(0x083143c4, 0x00000016, 0x00000020)
    TEST_SRA_W(0x3c5f0500, 0x00000000, 0x3c5f0500)
    TEST_SRA_W(0xa9e40838, 0x0000001c, 0xfffffffa)
    TEST_SRA_W(0xd9867f14, 0x0000001f, 0xffffffff)
    TEST_SRA_W(0x090a1550, 0x00000015, 0x00000048)
    TEST_SRA_W(0xa1c5ea00, 0x00000006, 0xfe8717a8)
    TEST_SRA_W(0x6904a70e, 0x0000000c, 0x0006904a)
    TEST_SRA_W(0x79c6bb60, 0x00000004, 0x079c6bb6)
    TEST_SRA_W(0x408c241f, 0x0000001e, 0x00000001)
    TEST_SRA_W(0xe01cb59e, 0x00000015, 0xffffff00)
    TEST_SRA_W(0x8868bb00, 0x00000009, 0xffc4345d)
    TEST_SRA_W(0x6cc8f4f8, 0x0000000f, 0x0000d991)
    TEST_SRA_W(0x1c5f5cd1, 0x00000012, 0x00000717)
    TEST_SRA_W(0xbdb73b00, 0x0000001f, 0xffffffff)
    TEST_SRA_W(0x44ab80f0, 0x00000005, 0x02255c07)
    TEST_SRA_W(0xc2d05ae0, 0x00000015, 0xfffffe16)
    TEST_SRA_W(0xba4a0cb8, 0x0000001a, 0xffffffee)
    TEST_SRA_W(0xb8083f72, 0x00000019, 0xffffffdc)
    TEST_SRA_W(0x8cafc504, 0x00000005, 0xfc657e28)
    TEST_SRA_W(0x58be02b8, 0x0000000f, 0x0000b17c)
    TEST_SRA_W(0x7182ad1d, 0x00000019, 0x00000038)
    TEST_SRA_W(0x7e8ee7da, 0x00000017, 0x000000fd)
    TEST_SRA_W(0x7f4e1334, 0x00000016, 0x000001fd)
    TEST_SRA_W(0xac956b06, 0x00000005, 0xfd64ab58)
    TEST_SRA_W(0x97c874a0, 0x00000003, 0xf2f90e94)
    TEST_SRA_W(0x97312710, 0x00000000, 0x97312710)
    TEST_SRA_W(0x10cef5ec, 0x00000009, 0x0008677a)
    TEST_SRA_W(0x0dead34e, 0x00000017, 0x0000001b)
    TEST_SRA_W(0xff164008, 0x00000011, 0xffffff8b)
    TEST_SRA_W(0x010adbd0, 0x00000009, 0x0000856d)
    TEST_SRA_W(0x26eec740, 0x0000000c, 0x00026eec)
    TEST_SRA_W(0x07643f99, 0x00000003, 0x00ec87f3)
    TEST_SRA_W(0xaad5a53c, 0x00000009, 0xffd56ad2)
    TEST_SRA_W(0x30d142e8, 0x00000015, 0x00000186)
    TEST_SRA_W(0x14b6b644, 0x00000015, 0x000000a5)
    TEST_SRA_W(0x3271e3e8, 0x0000001b, 0x00000006)
    TEST_SRA_W(0x6c569ec0, 0x00000011, 0x0000362b)
    TEST_SRA_W(0xbe1c738e, 0x00000008, 0xffbe1c73)
    TEST_SRA_W(0xdbbad0b0, 0x00000005, 0xfeddd685)
    TEST_SRA_W(0x0b24d560, 0x00000000, 0x0b24d560)
    TEST_SRA_W(0xf234887c, 0x00000000, 0xf234887c)
    TEST_SRA_W(0xfa3c8e40, 0x00000000, 0xfa3c8e40)
    TEST_SRA_W(0x3ec5955c, 0x00000000, 0x3ec5955c)
    TEST_SRA_W(0x418e01e6, 0x00000000, 0x418e01e6)
    TEST_SRA_W(0xfdf5ab83, 0x00000000, 0xfdf5ab83)
    TEST_SRA_W(0x64f8dfc0, 0x00000000, 0x64f8dfc0)
    TEST_SRA_W(0x91d223b0, 0x00000000, 0x91d223b0)
    TEST_SRA_W(0xc9839777, 0x00000000, 0xc9839777)
    TEST_SRA_W(0xb40ab300, 0x00000000, 0xb40ab300)
    TEST_SRA_W(0x7c90adc0, 0x00000000, 0x7c90adc0)
    TEST_SRA_W(0x05985ce0, 0x00000000, 0x05985ce0)
    TEST_SRA_W(0xd987f83c, 0x00000000, 0xd987f83c)
    TEST_SRA_W(0x85a3fe8e, 0x00000000, 0x85a3fe8e)
    TEST_SRA_W(0x286224b2, 0x00000000, 0x286224b2)
    TEST_SRA_W(0x1c230e10, 0x00000000, 0x1c230e10)
    TEST_SRA_W(0x72f1fa98, 0x00000000, 0x72f1fa98)
    TEST_SRA_W(0x22a8cd3b, 0x00000000, 0x22a8cd3b)
    TEST_SRA_W(0xbeb30f70, 0x00000000, 0xbeb30f70)
    TEST_SRA_W(0x9b7838d8, 0x00000000, 0x9b7838d8)
    TEST_SRA_W(0x00b9d580, 0x00000000, 0x00b9d580)
    TEST_SRA_W(0x2fadd0de, 0x00000000, 0x2fadd0de)
    TEST_SRA_W(0x577f089c, 0x00000000, 0x577f089c)
    TEST_SRA_W(0x863e30b4, 0x00000000, 0x863e30b4)
    TEST_SRA_W(0x6926a1a0, 0x00000000, 0x6926a1a0)
    TEST_SRA_W(0x6f4ecb50, 0x00000000, 0x6f4ecb50)
    TEST_SRA_W(0xe15c3cca, 0x00000000, 0xe15c3cca)
    TEST_SRA_W(0x5f7c33a2, 0x00000000, 0x5f7c33a2)
    TEST_SRA_W(0xa267ac08, 0x00000000, 0xa267ac08)
    TEST_SRA_W(0x8b001228, 0x00000000, 0x8b001228)
    TEST_SRA_W(0x53f7d6b8, 0x00000000, 0x53f7d6b8)
    TEST_SRA_W(0xe85d5600, 0x00000000, 0xe85d5600)
    TEST_SRA_W(0xf1ecfb76, 0x00000000, 0xf1ecfb76)
    TEST_SRA_W(0x0fc9ea7e, 0x00000000, 0x0fc9ea7e)
    TEST_SRA_W(0xcee83180, 0x00000000, 0xcee83180)
    TEST_SRA_W(0x5e349f20, 0x00000000, 0x5e349f20)
    TEST_SRA_W(0xc9ece2a0, 0x00000000, 0xc9ece2a0)
    TEST_SRA_W(0x8e758928, 0x00000000, 0x8e758928)
    TEST_SRA_W(0xcb9ff9bd, 0x00000000, 0xcb9ff9bd)
    TEST_SRA_W(0x4aa3f3f4, 0x00000000, 0x4aa3f3f4)
    TEST_SRA_W(0x10259cc6, 0x00000000, 0x10259cc6)
    TEST_SRA_W(0x6bbcdee0, 0x00000000, 0x6bbcdee0)
    TEST_SRA_W(0x0b5501c0, 0x00000000, 0x0b5501c0)
    TEST_SRA_W(0x84490bba, 0x00000000, 0x84490bba)
    TEST_SRA_W(0x60f7f7e4, 0x00000000, 0x60f7f7e4)
    TEST_SRA_W(0xde986fe0, 0x00000000, 0xde986fe0)
    TEST_SRA_W(0x2a8a6da8, 0x00000000, 0x2a8a6da8)
    TEST_SRA_W(0xac02d2b0, 0x00000000, 0xac02d2b0)
    TEST_SRA_W(0x74c04f80, 0x00000000, 0x74c04f80)
    TEST_SRA_W(0x4043b9ee, 0x00000000, 0x4043b9ee)
    TEST_SRA_W(0x00000000, 0x00000005, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000000b, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000019, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000000, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000000f, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000016, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000007, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000005, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000008, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000002, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000015, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000016, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000018, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000001, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000011, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001e, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000016, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000019, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000001, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001f, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000004, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001e, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000006, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000013, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001c, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001b, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001b, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000000e, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000017, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000002, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000001, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001c, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000002, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001e, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000000c, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000010, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000006, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000001f, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000008, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000011, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000012, 0x00000000)
    TEST_SRA_W(0x00000000, 0x0000000e, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000000, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000008, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000019, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000010, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000012, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000011, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000014, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000012, 0x00000000)
    TEST_SRA_W(0x00000000, 0x00000000, 0x00000000)
###detect exception
    bne s2, zero, inst_error
    nop
###score ++
    addi.w s3, s3, 1
###output (s0<<24)|s3
inst_error:  
    slli.w t1, s0, 24
    NOP4
    or t0, t1, s3 
    NOP4
    st.w t0, s1, 0
    jirl zero, ra, 0
END(n28_sra_w_test)
